//
//  RMTimeHandle.h
//  RMNote
//
//  Created by lxf on 16/4/15.
//  Copyright © 2016年 lxf. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RMTimeHandle : NSObject



+ (instancetype)shareInstance;

- (NSDate *)dateForDateStr:(NSString *)dateStr andFormatter:(NSString *)formatter;
/**
 *  根据时间数组返回如下格式的 NSDictionary
 *
 *  @param dateArr 时间数组
 *
 *  @return NSDictionary 格式如下
 
 {
 2016 = {
 4 = (
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000"
 );
 3 = (
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000"
 );
 };
 2015 = {
 4 = (
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000"
 );
 4 = (
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000",
 "2016-04-15 13:08:18 +0000"
 );
 };
 }
 
 
 */
- (NSDictionary *)dataDrawUntilMonthWithDateArr:(NSArray *)dateArr;

- (NSDictionary *)dataDrawUntilDayWithDateArr:(NSArray *)dateArr;
@end
